package com.study.dao; 

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.study.entity.Staff;

/**  
 *  操作数据库的dao层
 */  

public interface StaffDao  
{  
    
    //增加一个Staff
    public void saveStaff(Staff staff);
	
	//根据id查询Staff
    public Staff getStaffById(String id);
	
	
	//分页条件查询Staff
	public List<Staff> listStaff(@Param("staff") Staff staff, @Param("from") String from, @Param("number") String number);
	
	public long getStaffCount(@Param("staff") Staff staff);
	
	
	
	
	//根据id删除Staff
	public boolean removeStaffById(String id);
	
	//更新Staff
	public void updateStaff(Staff staff);
	
	
	/**
	 *	条件更新
	 */
	
	
	
	//更新Staff表中的password
	public boolean updatePasswordInStaff(@Param("id") String id, @Param("password")String password);
}